<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html>
<head>
    <meta name="decorator" content="default">
    <title>工站管理</title>
    <script type="text/javascript">
        function page(n,s) {
            $("#pageNo").val(n);
            $("#pageSize").val(s);
            $("#searchForm").submit();
        }
    </script>
</head>
<body>
    <!--1.tab头部-->
    <ul class="nav nav-tabs">
    <li class="active"><a href="${ctx}/bas/workStationInfos/list">工站信息列表</a></li>
    <li><a href="${ctx}/bas/workStationInfos/form">工站信息添加</a></li>
    </ul>
    <!--2.查询-->
    <form:form id="searchForm" method="post" action="${ctx}/bas/workStationInfos/" modelAttribute="workStationInfos" class="breadcrumb">
        <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
        <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
        <label>工站名称</label>
        <form:input path="stationName" maxlength="50" class="input-medium" htmlEscape="false"/>
        <input id="btnSubmit" type="submit" value="查询" class="btn btn-primary"/>
    </form:form>
        <sys:message content="${message}"/>
    <!--3.列表-->
        <table id="contentTable" class="table table-striped table-bordered table-condensed">
        <thread>
        <th>工站名称</th>
        <th>所属产线</th>
        <th>工站编码</th>
        <th>工站负责人</th>
        <th>操作</th>
        <th></th>
        </thread>
        <tbody>
        <c:forEach items="${page.list}" var="workStationInfos">
            <tr>
                <td>${workStationInfos.stationName}</td>
                <td>${workStationInfos.line.lineName}</td><!--外键对象-->
                <td>${workStationInfos.stationNo}</td>
                <td>${workStationInfos.stationMaster}</td>
                <td>
                    <a href="${ctx}/bas/workStationInfos/form?id=${workStationInfos.id}">修改</a>
                    <a href="${ctx}/bas/workStationInfos/delete?id=${workStationInfos.id}" onclick="return confirmx('确认要删除该工站吗？',this.href)">删除</a>
                </td>
            </tr>
        </c:forEach>
        </tbody>
        </table>
    <!--4.分页-->
        <div class="pagination">${page}</div>
</body>
</html>
